Test Series - java script

Test Number 63/92

Q: What is the purpose of the method plot()?
A. Displays symbols
B. Displays charts
C. Displays symbols and charts
D. Display characters
Solution: The most used plotting function in R programming is the plot() function. It is a generic function, meaning, it has many methods which are called according to the type of object passed to plot(). The plot() function will display a different type of chart depending on the arguments that you pass into it.
Q: How many parameters does the method plot() accept?
A. 6
B. 7
C. 8
D. 9
Solution: Plot() is a generic function, meaning, it has many methods which are called according to the type of object passed to plot(). The method plot() accepts a total of 9 parameters.
Q: What is the need for bubble charts?
A. Represent 2D data
B. Represent 3D data
C. Represent 2D and 3D data
D. Represents meta data
Solution: A bubble plot is a scatterplot where a third dimension is added the value of an additional variable is represented through the size of the dots. They are used to represent three-dimensional data.
Q: Which of the following is the initial function used to create a bubble chart natively in R?
A. init()
B. chart(bubble)
C. symbols()
D. bchart()
Solution: symbols() function draws symbols on a plot. One of six symbols; circles, squares, rectangles, stars, thermometers, and boxplots, can be plotted at a specified set of x and y coordinates. The method symbols() is used to create a bubble chart natively in R.
Q: What is the purpose of the method symbols in R?
A. Draw symbols
B. Draw other shapes
C. Draw symbols and other shapes
D. Plotting symbols
Solution: The symbols() function can be used to draw other shapes on a plot; for more information about this type ?symbols at the R console. One of six symbols; circles, squares, rectangles, stars, thermometers, and boxplots, can be plotted at a specified set of x and y coordinates.
Q: How to save chart as a Window metafile?
A. metafile()
B. win.metafile()
C. file()
D. metawin()
Solution: Metafile is a piece of graphical information stored in a format that can be exchanged between different systems or software. The method win.metafile([filename]) is used to save chart as a Window metafile.
Q: Which is the method used to save chart as a ps file?
A. ps()
B. postscript()
C. script()
D. post(script)
Solution: postscript starts the graphics device driver for producing PostScript graphics. The syntax for the method to save chart as a ps file is : postscript([filename]).
Q: Which of the following are methods not used to save charts?
A. pdf()
B. jpeg()
C. bmp()
D. pmb()
Solution: Since R runs on so many different operating systems, and supports so many different graphics formats, it’s not surprising that there are a variety of ways of saving your plots, depending on what operating system you are using, what you plan to do with the graph, and whether you’re connecting locally or remotely.
Q: Which is the method used to draw a bar plot?
A. bar_plot()
B. plot(bar)
C. barplot()
D. plotbar()
Solution: A bar chart represents data in rectangular bars with length of the bar proportional to the value of the variable. R uses the function barplot() to create bar charts.
Q: What is the purpose of the method par()?
A. Makes the text vertical
B. Makes the text horizontal
C. Makes the text diagonal
D. Makes the text small
Solution: The par(mfrow) function is handy for creating a simple multi-paneled plot, while layout should be used for customized panel plots of varying sizes. With the method par(), you can make the text horizontal.

You Have Score    /10